package appapi.Vo.AppVo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author dhq
 * @version 1.0
 * @date 2023/11/7  14:49
 */
@Data
@ApiModel("总台账导出信息")
public class ExecelEquipVos {
    /**
     * 设备类型
     */
    @ApiModelProperty(value = "导出设备类型名称")
    @Excel(name = "设备类型",orderNum = "0",width =20)
    private String equipTypeName;
    /**
     * 设备名称
     */
    @ApiModelProperty(value = "导出设备名称")
//    @Excel(name = "设备别名",orderNum = "1",width =20)
    private String equipName;
    /**
     * 设备编号
     */
    @ApiModelProperty(value = "导出设备编号")
    @Excel(name = "设备编号",orderNum = "2",width =20)
    private String equipNo;
    /**
     * 0-在用 1-停用
     */
    @ApiModelProperty(value = "0-在用 1-停用")
    @Excel(name = "设备状态",orderNum = "3",width =20,replace = {"在用_0","停用_1"})
    private Integer equipStatus;

    /**
     * 终端id
     */
    @ApiModelProperty(value = "导出终端ID")
    @Excel(name = "终端ID",orderNum = "4",width =20)
    private String equidTerminal;

    /**
     * 所在项目
     */
    @ApiModelProperty(value = "导出所属项目名称")
    @Excel(name = "所属机构",orderNum = "5",width =20)
    private String projName;
    /**
     * 设备来源
     */
    @ApiModelProperty(value = "导出设备来源")
    @Excel(name = "设备来源",orderNum = "6",width =20,replace = {"自有设备_1","外租设备_0","队伍自带_2"})
    private Integer equipSource;
    /**
     * 监检证书编号
     */
    @ApiModelProperty(value = "导出证书编号")
    @Excel(name = "监检证书编号",orderNum = "7",width =20)
    private String monitoringCode;
    /**
     * 微信二维码
     */
    @ApiModelProperty(value = "导出微信二维码")
//    @Excel(name = "设备二维码",orderNum = "8",width =20)
    private String wechatCode;
    /**
     * 退场日期
     */
    @ApiModelProperty(value = "导出退场日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "退场日期",orderNum = "9",width =20,format = "yyyy-MM-dd HH:mm:ss")
    private Date equipQuitdate;


    @ApiModelProperty(value = "是否错误")
    private Boolean error;

    @ApiModelProperty(value = "错误提示")
    private String verifyResult;

    @ApiModelProperty(value = "redis记录ID")
    private Long id;
}